<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{$SETTING[siteurl]}" />
<link href="favicon.ico" rel="shortcut icon" />
<meta name="google-site-verification" content="wlbtCYsDxMFG_RdLUJll1nD3V-088kY_uJOmi0-y2RY" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link href="{SKIN_PATH}skin/responsive.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


<!--瀑布流-->
<script src="{MOD_ROOT}{$module}/jquery.masonry.min.js"></script>
<script>
  $(function(){
	$('.guess').masonry({
	  itemSelector: '.span2'
	});

  });
</script>
</head>
<body>  


{template 'header.html'}

<div class="container">


    <div class="row">
    	<div class="main"> 
			 
           
            <h3>猜你喜欢</h3>
                
  
            <script>
				$(function(){
					$('.guess .thumbnail').hover(function(){
						$(this).find('img').css('opacity',0.8);
					},
					function(){
						$(this).find('img').css('opacity',1);
					})
				})
			</script>
            <style type="text/css">
				.guess .thumbnail{  margin-bottom:20px; padding:10px; }
				.guess .thumb{text-align:center;}
			</style>
			<div class="row guess">
          		
             
              {php $i=0;}
              {loop $data $k $r}
                
                {php $i++;}
                {if $i==41} 
                {php break;} 
                {/if}
             
                
                <div class="span2">
                	<div class="thumbnail"> 
                	{if $r[thumb]}
                	<div class="thumb"><a href="{url($r[url])}" target="{$target}"><img src="{php echo $r[thumb] ? thumb($r[thumb],'120','150') : thumb('misc/nopic.gif','120','')}"/></a></div>
                    {/if}
                    
                    <p><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 60)}</a></p>
                    <div class="attr">
                    {if date('Y-m-d',$r[updatetime]) == date('Y-m-d')}
                    	<font color="red">{date('Y-m-d',$r[updatetime])}</font>
                    {else}
                    	<font color="gray">{date('Y-m-d',$r[updatetime])}</font>
                    {/if}
                    </div>
                    
                    {if $r[description]}
                    <div class="clear">
                    	
                        {if $r[thumb]}
                        	{str_cut(str_replace('　','',$r[description]),60)} 
                        {else}
                        	{str_cut(str_replace('　','',$r[description]),150)} 
                        {/if}
                        
                    </div>
                    {else}
                    <div class="clear">
                    	
                        {if $r[thumb]}
                        	{str_cut(str_replace('　','',strip_tags($r[content])),60)} 
                        {else}
                        	{str_cut(str_replace('　','',strip_tags($r[content])),150)} 
                        {/if}
                        
                    </div>
                    {/if}
                    
                    
                    {if $keywords}
                    <div>tag:
                        {loop $keywords $k $v}
                        <a href="{url("?module=content&action=tag&name=$v")}">{$v}</a>
                        {/loop}
                    </div>
                    {/if}
                    
                    <div><a class="badge" href="{url($r[url])}"><i class="icon-heart icon-white"></i>{$r[hits]}</a></div>
                    
                    <div>
                    	<a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),16,16)}" alt="{$r[username]}"  target="_blank" width="16" height="16"/></a> {username($r[userid])}
                    </div>
                    
                    </div>
              </div>
     
    
              {/loop}
              
           
            </div>
            
   
    </div>
    
    <div class="aside"> 
   
    <div class="mod">
        <div class="head">最新公告&nbsp;<small>Announce</small>(<a href="{url("?module=announce")}">更多</a>)</div>
            <ul class="body">
          {get sql="select announceid,title,addtime,todate,hits from table_announce order by addtime desc" rows="5"}
            <li>
            <a href="{url("?module=announce&announceid=$r[announceid]")}">{$r[title]}</a><br/>
            时间：{if ($r[todate]=='0000-00-00')}不限{else}{$r[fromdate]}至{$r[todate]}{/if}<br/>
            {$r[hits]}人阅读
            </li>
          {/get}
          </ul>
     </div>
    
    <div class="mod">
        <div class="head">最新注册会员&nbsp;<small>members</small>(<a href="{url("?module=member&action=list")}">更多</a>)</div>
        <ul class="body users">
            {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid=10 AND disabled=0 ORDER BY userid DESC"}
           {get sql="$sql" rows="10" page="$page"}
            <li>
             <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url("?module=space&userid=$r[userid]")}">{php echo $r[nickname] ? $r[nickname] : $r[username]}</a>
             <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}">(关注TA)</a>-->
            </li>
          {/get}
       </ul>
    </div>
    
    
     
     <div class="mod companys">
        <div class="head">最新注册企业&nbsp;<small>companys</small>(<a href="{url("?module=yellowpage")}">更多</a>)</div>
        <ul class="body">
              {get sql="SELECT userid,companyname,sitedomain,introduce FROM `table_member_company` WHERE status = 1 ORDER BY userid DESC" rows="7"}
                {if $r[companyname]}
                <li>
                <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">{str_cut($r[companyname],26,'..')}</a><br/>
                {str_cut($r[introduce],30,'..')}
                </li>
                {/if}
              {/get}
        </ul>
    </div>
    
    
    <div class="mod">
        <div class="head">每日箴言&nbsp;<small>Daily proverb</small>(<a href="{url("?module=say")}">更多</a>)</div>
        <div class="body">
            {get sql="select url,userid,username,description,hits from table_say order by sayid DESC" rows="1"}
            {$r[description]}
            {/get}
        </div>
    </div>
    
    
   <div class="mod">
   		<div class="head">好友动弹&nbsp;<small>tweet</small>(<a href="{url("?module=tweet")}">更多</a>)</div>
    	<ul class="body">
	  {get sql="select userid,username,description,url,updatetime from table_tweet order by tweetid DESC" rows="10"}
		<li>({date('m-d',$r[updatetime])})&nbsp;<a href="{url("?module=space&userid=$r[userid]")}">@{$r[username]}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[description],21,'...')}</a></li>
	  {/get}
      </ul>
      </div>
      
        <div class="mod">
            <div class="head"><span>会员列表</span><small>Members</small>(<a href="{url("?module=member&action=list")}">更多</a>)</div>
            <ul class="body users">
            {get sql="select * from table_member where avatar <> '' order by userid ASC " rows="12"}
            <li>
             <a href="{url("?module=space&&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a>
             <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}">(关注TA)</a>-->
            </li>
          {/get}
          </ul>
        </div>
        
        
        <div class="mod">
            <div class="head"><span>最新小组</span><small>Members</small>(<a href="{url("?module=group")}">更多</a>)</div>
            <ul class="body users">
            {get sql="select * from table_group where thumb <> '' order by updatetime ASC " rows="12"}
            <li>
             <a href="{url("?module=group&groupid=$r[groupid]")}" title="{$r[title]}"><img src="{thumb($r[thumb],40,40)}" alt="{$r[title]}" target="_blank" width="40" height="40"/></a>
             <br/><a href="{url($r[url])}">{str_cut($r[title],15,'')}</a><br/>&nbsp;({rand(100,500)})
            </li>
          {/get}
          </ul>
        </div>
        
          
     <div class="mod">
        <div class="head"><span>商家列表</span>&nbsp;<small>business</small>(<a href="{url('?module=member&action=apply')}">申请</a>)</div>
        <ul class="body users">
      <!--{get sql="select * from table_member" rows="12"}-->
        <li>
         <a href="{url("?module=yellowpage&userid=$r[userid]")}"><img src="{avatar($r[userid])}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
         <br/><a href="{url("?module=yellowpage&userid=$r[userid]")}">{$r[username]}</a>
        </li>
      <!--{/get}-->
      </ul>
    </div>
      
    
     <div class="mod">
    	<div class="head">热门阅读&nbsp;<small>hot reads</small>(<a href="#">更多</a>)</div>
        <ul class="body">
          <!--{get sql="select title,url,hits from table_content order by hits desc" rows="10"}-->
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li> 
          <!--{/get}-->
        </ul>
    </div>
          
          
          <!--<div class="mod">
              <div class="head">代码分享(<a href="{url("?module=codex")}">更多</a>)</div>
                <ul class="body">
                {get sql="SELECT * FROM `table_codex` WHERE  status=99 ORDER BY codexid DESC" rows="20" page="$page"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                {/get}
                 </ul>
           </div>  -->
             
             <!--<div class="mod">
                 <div class="head">软件下载(<a href="{url("?module=soft")}">更多</a>)</div>
                <ul class="body">
                    {get sql="SELECT * FROM `table_soft` WHERE  status=99 ORDER BY softid DESC" rows="20" page="$page"}
                    <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                    {/get}
                </ul>
            </div>-->
            
        
        <!--<div class="mod">    
            <div class="head">最新博客(<a href="{url("?module=blog")}">更多</a>)</div>
            <ul class="body">
            {get sql="SELECT `title`,`url`,`hits` FROM `table_blog` WHERE  status=99 ORDER BY blogid DESC" rows="20" page="$page"}
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
            {/get}
             </ul>
         </div> -->
          
        <div class="mod">
            <div class="head">最新评论&nbsp;<small>Comments</small></div>
            <ul class="body">
              <!--{get sql="select commentid,content from table_comment order by addtime desc" rows="10"}-->
                <li><a rel="nofollow" href="#">{str_cut(htmlspecialchars(trim($r[content])),30)}</a></li>
              <!--{/get}-->
              </ul>
         </div>
          
         
        <div class="mod">
            <div class="head">热门标签(<a href="#">更多</a>)</div>
            <div class="body">
          <!--{get sql="select tag,hits from table_keyword order by listorder desc,hits desc" rows="10"}-->
            <a href="{url("?module=content&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
          <!--{/get}-->
          </div>
        </div>
        
       
        <div class="mod">
            <div class="head">站内搜索&nbsp;<small>Search</small></div>
            <div class="body">
                <form>
                    <input name="" type="text" value="请输入关键字" />
                    <input name="" type="button" value="搜索" />
                 </form>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">功能&nbsp;<small>Plugins</small></div>
            <ul class="body">
                <li><a rel="nofollow" href="admin.php">管理员登陆</a></li>    
                <li><a rel="nofollow" href="{url("?module=rss")}">网站RSS</a></li>    
            </ul>
        </div>
        
        <div class="mod">
        	<div class="head"><span>友情链接</span>(<a href="{url('?module=link&action=apply')}">申请</a>)</div>
            <div class="body">
                <a rel="nofollow" href="#">百度</a>&nbsp;   
                <a rel="nofollow" href="#">谷歌</a>   
            </div>
        </div>
        
        
        
        <div class="mod">
        	<div class="head"><span>相关链接</span>(<a href="{url('?module=link&action=apply')}">申请</a>)</div>
            <div class="body">
                <select name="" onChange="window.open(this.options[this.selectedIndex].value)">
                    <option>—其他相关链接—</option>
                    <option value="http://www.baidu.com">—百度—</option> 
				</select> 
            </div>
        </div>
          
          
    </div>
    </div>
</div>
 

{template 'footer.html'}